<?
include_once 'lib/facebook.php';
include_once 'includes/config.php';
include_once 'includes/dbconnect.php';


$question_id = $_POST['question_id'];

$get_yes = mysql_query("select count(*) as result from tbl_answer where question_id='$question_id' and answer='Y'");
$get_no = mysql_query("select count(*) as result from tbl_answer where question_id='$question_id' and answer='N'");

$total_yes = mysql_result($get_yes, 0, "result");
$total_no = mysql_result($get_no, 0, "result");

echo "yes=$total_yes&no=$total_no";
?>


